/*
 * RestituicaoBean.java
 *
 * Created on 2 de Junho de 2007, 20:07
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package br.poo.receita.model.bean;

import br.poo.receita.model.db.RestituicaoDb;
import br.poo.receita.model.db.DbFactory;
import br.poo.receita.model.db.GenericDb;
import br.poo.receita.model.entity.Restituicao;
import java.sql.Connection;
import java.sql.SQLException;

/**
 *
 * @author Gustavo
 */
public class RestituicaoBean {
    
    private RestituicaoDb restituicaoDb = new DbFactory().getRestituicaoDb();
    
    /** Creates a new instance of RestituicaoBean */
    public RestituicaoBean() {
    }
    
    public Restituicao preencheRestituicao(String cpf){
        try {
            return restituicaoDb.preencheRestituicao(cpf);
        } catch (SQLException ex) {
            ex.printStackTrace();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return null;
    }
    
}
